package com.njworkorder.DTO.SelectDTO;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class SelectAssignmentDto {

    @Schema(description = "页码")
    private int pageIndex;
    @Schema(description = "每页条数")
    private int pageSize;

    @Schema(description = "审核状态，0未审核，1已审核，2审核不通过，3维修中，4验收待审核，5验收审核通过（初审），6验收审核不通过（初审），7验收审核通过（终审），8验收审核不通过（终审）")
    private List<Integer> auditStatus;

    @Schema(description = "病害模块")
    private String diseaseModule;

    @Schema(description = "任务单号")
    private String taskOrderNumber;

    @Schema(description = "养护单位id（组织id）")
    private String maintenanceUnitId;

    @Schema(description = "数据状态", example = "2为正常状态,6为冻结状态,8为失效状态")
    private String status;

    @Schema(description = "派单开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date dispatchStartDate;

    @Schema(description = "派单结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date dispatchEndDate;

    @Schema(description = "路段id")
    private String sectionId;

}
